package cn.iocoder.yudao.framework.message;

import cn.hutool.core.lang.UUID;
import lombok.Data;

/**
 * web socket通信消息基类
 *
 * @author: wds_prc
 * @since: 2024/7/9 22:26
 */
@Data
public abstract class BaseWebSocketMessage {

    /**
     * 消息请求路径
     */
    private String uri;
    private Object data;
    private String requestId = UUID.fastUUID().toString();

    public BaseWebSocketMessage() {
    }

    public BaseWebSocketMessage(Object data) {
        this.data = data;
    }


}
